home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / comm1 / intsdkss.lha / include / sys / vfs.h < prev    next >
C/C++ Source or Header  |  1996-04-09  |  780b  |  29 lines

  1. #ifndef _SYS_VFS_H_
  2. #define _SYS_VFS_H
  3.  
  4. typedef long fsid_t [2];
  5.  
  6. #define ST_RDONLY  0x01
  7. #define ST_NOSUID  0x02
  8. #define ST_NOTRUNC 0x04
  9.  
  10. struct statfs {
  11.     long    f_type;     /* type of filesystem */
  12.     long    f_bsize;    /* optimal transfer block size */
  13.     long    f_blocks;   /* total data blocks in file system */
  14.     long    f_bfree;    /* free blocks in fs */
  15.     long    f_bavail;   /* free blocks avail to non-superuser */
  16.     long    f_files;    /* total file nodes in file system */
  17.     long    f_ffree;    /* free file nodes in fs */
  18.     fsid_t    f_fsid;     /* file system id */
  19.     long    f_namelen;  /* maximum length of filenames */
  20. #define     f_namemax      f_namelen
  21.     char    f_basetype [32];
  22.     long    f_flag;
  23. };
  24.  
  25. int statfs (const char *path, struct statfs *s);
  26. int fstatfs (int filedes, struct statfs *s);
  27.  
  28. #endif
  29.